﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005E5 RID: 1509
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FriendApplyInfo : IMessage<FriendApplyInfo>, IMessage, IEquatable<FriendApplyInfo>, IDeepCloneable<FriendApplyInfo>, IBufferMessage
	{
		// Token: 0x1700135C RID: 4956
		// (get) Token: 0x060043E7 RID: 17383 RVA: 0x000B97AD File Offset: 0x000B79AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FriendApplyInfo> Parser
		{
			get
			{
				return FriendApplyInfo._parser;
			}
		}

		// Token: 0x1700135D RID: 4957
		// (get) Token: 0x060043E8 RID: 17384 RVA: 0x000B97B4 File Offset: 0x000B79B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FriendApplyInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700135E RID: 4958
		// (get) Token: 0x060043E9 RID: 17385 RVA: 0x000B97C6 File Offset: 0x000B79C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FriendApplyInfo.Descriptor;
			}
		}

		// Token: 0x060043EA RID: 17386 RVA: 0x000B97CD File Offset: 0x000B79CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendApplyInfo()
		{
		}

		// Token: 0x060043EB RID: 17387 RVA: 0x000B97D8 File Offset: 0x000B79D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendApplyInfo(FriendApplyInfo other) : this()
		{
			this.applyTime_ = other.applyTime_;
			this.playerInfo_ = ((other.playerInfo_ != null) ? other.playerInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060043EC RID: 17388 RVA: 0x000B9824 File Offset: 0x000B7A24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendApplyInfo Clone()
		{
			return new FriendApplyInfo(this);
		}

		// Token: 0x1700135F RID: 4959
		// (get) Token: 0x060043ED RID: 17389 RVA: 0x000B982C File Offset: 0x000B7A2C
		// (set) Token: 0x060043EE RID: 17390 RVA: 0x000B9834 File Offset: 0x000B7A34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long ApplyTime
		{
			get
			{
				return this.applyTime_;
			}
			set
			{
				this.applyTime_ = value;
			}
		}

		// Token: 0x17001360 RID: 4960
		// (get) Token: 0x060043EF RID: 17391 RVA: 0x000B983D File Offset: 0x000B7A3D
		// (set) Token: 0x060043F0 RID: 17392 RVA: 0x000B9845 File Offset: 0x000B7A45
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerSimpleInfo PlayerInfo
		{
			get
			{
				return this.playerInfo_;
			}
			set
			{
				this.playerInfo_ = value;
			}
		}

		// Token: 0x060043F1 RID: 17393 RVA: 0x000B984E File Offset: 0x000B7A4E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FriendApplyInfo);
		}

		// Token: 0x060043F2 RID: 17394 RVA: 0x000B985C File Offset: 0x000B7A5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FriendApplyInfo other)
		{
			return other != null && (other == this || (this.ApplyTime == other.ApplyTime && object.Equals(this.PlayerInfo, other.PlayerInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060043F3 RID: 17395 RVA: 0x000B98AC File Offset: 0x000B7AAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ApplyTime != 0L)
			{
				num ^= this.ApplyTime.GetHashCode();
			}
			if (this.playerInfo_ != null)
			{
				num ^= this.PlayerInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060043F4 RID: 17396 RVA: 0x000B9901 File Offset: 0x000B7B01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060043F5 RID: 17397 RVA: 0x000B9909 File Offset: 0x000B7B09
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060043F6 RID: 17398 RVA: 0x000B9914 File Offset: 0x000B7B14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ApplyTime != 0L)
			{
				output.WriteRawTag(8);
				output.WriteInt64(this.ApplyTime);
			}
			if (this.playerInfo_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.PlayerInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060043F7 RID: 17399 RVA: 0x000B996C File Offset: 0x000B7B6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ApplyTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.ApplyTime);
			}
			if (this.playerInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.PlayerInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060043F8 RID: 17400 RVA: 0x000B99C4 File Offset: 0x000B7BC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FriendApplyInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ApplyTime != 0L)
			{
				this.ApplyTime = other.ApplyTime;
			}
			if (other.playerInfo_ != null)
			{
				if (this.playerInfo_ == null)
				{
					this.PlayerInfo = new PlayerSimpleInfo();
				}
				this.PlayerInfo.MergeFrom(other.PlayerInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060043F9 RID: 17401 RVA: 0x000B9A2C File Offset: 0x000B7C2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060043FA RID: 17402 RVA: 0x000B9A38 File Offset: 0x000B7C38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 122U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.playerInfo_ == null)
						{
							this.PlayerInfo = new PlayerSimpleInfo();
						}
						input.ReadMessage(this.PlayerInfo);
					}
				}
				else
				{
					this.ApplyTime = input.ReadInt64();
				}
			}
		}

		// Token: 0x04001ABA RID: 6842
		private static readonly MessageParser<FriendApplyInfo> _parser = new MessageParser<FriendApplyInfo>(() => new FriendApplyInfo());

		// Token: 0x04001ABB RID: 6843
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001ABC RID: 6844
		public const int ApplyTimeFieldNumber = 1;

		// Token: 0x04001ABD RID: 6845
		private long applyTime_;

		// Token: 0x04001ABE RID: 6846
		public const int PlayerInfoFieldNumber = 15;

		// Token: 0x04001ABF RID: 6847
		private PlayerSimpleInfo playerInfo_;
	}
}
